import type { RNTesterModuleInfo } from '../types/RNTesterTypes';

const Components: Array<RNTesterModuleInfo> = [
  {
    key: 'react-native-amap3d',
    category: 'Map',
    module: require('../examples/react-native-amap3d/index').default,
  },
    {
    key: 'react-native-pdf',
    category: 'ui',
    module: require('../examples/react-native-pdf/testCase/App'),
  },
  {
    key: 'SmartAssetsImage',
    category: 'UI',
    module: require('../examples/react-native-smartassets/SmartAssetsImage'),
  }
];

const APIs: Array<RNTesterModuleInfo> = [
  {
    key: 'BorderExample',
    category: 'UI',
    module: require('../examples/Border/BorderExample'),
  },
];

const Modules: any = {};

APIs.concat(Components).forEach(Example => {
  Modules[Example.key] = Example.module;
});

const RNTesterList = {
  APIs,
  Components,
  Modules,
};

export default RNTesterList;
